<template>
	<view class="container">
		<view>
			<desc-wrapper :title="title" :desc="desc"></desc-wrapper>
			<z-card justifyContent="center">
				<view class="card-content-item">
					<view class="w-full h-full flex-1">
						<view class="input-name-box">
							<input class="input-item" v-model="form.title_zhougong" type="text"
								placeholder="请输入做梦内容关键字,比如婴儿" />
						</view>
					</view>
				</view>
			</z-card>
			<view class="bottom-btns">
				<view class="start-btn" @click="onClick_1">
					<text class="">立即解梦</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '周公解梦',
				desc: '测试方法：输入您梦见的关键字，点击立即解梦，并查看结果，请自行体会其中的指示',
				form: {
					title_zhougong: '',
				},
			};
		},
		methods: {
			onClick_1() {
				let that = this;
				if (this.form.title_zhougong == "") {
					uni.$u.toast("请输入做梦内容关键字,比如婴儿")
					return
				}
				uni.navigateTo({
					url: `/pages/zhougong/detail?formData=${JSON.stringify(that.form)}`
				})

			},
		},
	};
</script>
<style lang="scss">
</style>